package com.georgekozlovsky.math;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.4.0 2011-06-05T18:42:04.578+02:00
 * Generated source version: 2.4.0
 * 
 */
public final class Fibonacci_FibonacciPort_Client {

	private static final QName SERVICE_NAME = new QName(
			"http://math.georgekozlovsky.com/", "FibonacciService");

	private Fibonacci_FibonacciPort_Client() {
	}

	public static void main(String args[]) throws Exception {
		URL wsdlURL = FibonacciService.WSDL_LOCATION;
		if (args.length > 0) {
			File wsdlFile = new File(args[0]);
			try {
				if (wsdlFile.exists()) {
					wsdlURL = wsdlFile.toURI().toURL();
				} else {
					wsdlURL = new URL(args[0]);
				}
			} catch (MalformedURLException e) {
				e.printStackTrace();
			}
		}

		FibonacciService ss = new FibonacciService(wsdlURL, SERVICE_NAME);
		Fibonacci port = ss.getFibonacciPort();

		{
			System.out.println("Invoking calculate...");
			int _calculate_arg0 = 50;
			long _calculate__return = port.calculate(_calculate_arg0);
			System.out.println("calculate.result=" + _calculate__return);
		}

		System.exit(0);
	}

}
